www.gusucode.com > 基于Matlab的MIMO通信系统仿真 含报告;司中威;了解移动通信 > 基于Matlab的MIMO通信系统仿真 含报告;司中威;了解移动通信关键技术,了解数字通信系统仿真流程,实现基本的信道编译码、调制解调等通信模块。(好评如潮,课设拿满) 学习并实现MIMO空时处理技术 学习性能分析的思路和方法/mimo/matlab for mimo 2x2/detect.m
function bhat = detect(Ich, Qch, chGain) % 16-QAM detector % % Input: % I-channel & Q-channel data % % Output: % bhat = bits {0,1} corresponding to the QPSK symbols % Gray mapping % 0010 0110 1110 1010 % 0011 0111 1111 1011 % 0001 0101 1101 1001 % 0000 0100 1100 1000 M = 4; % 4 bits per symbol len = M*length(Ich); bhat = zeros(1, len); k = 1; for i = 1:M:len % I-channel if Ich(k) > 0 bhat(i) = 1; if Ich(k) <=2*chGain %bhat(i) = 1; bhat(i+1) = 1; end else if Ich(k)>-2*chGain %bhat(i) = 0 bhat(i+1) = 1; end end % Q-channel if Qch(k) > 0 bhat(i+2) = 1; if Qch(k) <=2*chGain % bhat(i+2) = 1; bhat(i+3) = 1; end else if Qch(k)>-2*chGain %bhat(i+2) = 0 bhat(i+3) = 1; end end k = k + 1; % ouuput counter end % for i